import request from '@/api/http.js'

//获取质检项目列表
export const getQualityDetectionProjectList = (params) => {
    console.log('changeWorkStatus发送参数:', params)
    const query = new URLSearchParams(params).toString();
    return request.get(`api/QualityDetection/GetQualityDetectionProjectList?${query}`)
}

// 新增质检项目
export const addQualityDetectionProject = (params) => {
    return request.post('api/QualityDetection/AddQualityDetectionProject',params)
}

// 编辑质检项目
export const updateQualityDetectionProject = (params) => {
    return request.post('api/QualityDetection/UpdateQualityDetectionProject',params)
}

// 删除质检项目
export const deleteQualityDetectionProject = (params) => {
    return request.post(`api/QualityDetection/DeleteQualityDetectionProject/${params.id}`)
}
